package design.pattern.装饰者模式;

public class MainClass {
    public static void main(String[] args) {
        ConcreteComponent xiaocai = new ConcreteComponent("小菜");
        ConcreteDecoratorA dayi = new ConcreteDecoratorA();
        ConcreteDecoratorB kuzi = new ConcreteDecoratorB();
        dayi.setComponent(xiaocai);
        kuzi.setComponent(dayi);
        kuzi.operation();
    }
}
